<meta charset="utf-8">
#{extends 'main.html' /} #{set title:'Home' /}

<div class="container">
	<div class="row">
		<div class="span6 offset3">
			<form enctype="multipart/form-data" method="POST" action="@{Court.create()}" class="form-vertical">
				<fieldset>
					<div class="control-group">
						<div class="controls docs-input-sizes">
							<img id="foodCourtPictureId" src="http://placehold.it/100x100" alt=""
								style="margin-bottom: 10px; width: 100px; height: 100px"> 
							<input type="file" name="picture"> 
							<input type="text" class="span6" placeholder="Name" name="foodCourt.name" id="foodCourtNameId">
							<input type="text" class="span6" placeholder="Address" name="foodCourt.address.address" id="foodCourtAddressId">
							<input type="text" class="span4" placeholder="City" name="foodCourt.address.city" id="foodCourtCityId"> 
							<input type="text" class="span3" placeholder="State/Province/Region" name="foodCourt.address.state" id="foodCourtStateId"> 
							<input type="text" class="span2" placeholder="Zip" name="foodCourt.address.zip" id="foodCourtZipId"> 
							<input type="text" class="span3" placeholder="Country"  name="foodCourt.address.country" id="foodCourtCountryId"> 
							<input type="text" class="span4" placeholder="Phone" name="telephone.number"id="foodCourtPhoneId">
							<input type="hidden" value="HOME" name="telephone.type">
						</div>
					</div>
					<div class="form-actions">
						<button type="submit" class="btn btn-primary">Save changes</button>
						<span onclick="location.href='@{Court.list()}'" class="btn">Cancel</span>
					</div>
				</fieldset>
			</form>
		</div>
	</div>
	<!--/row-->
</div>
<!--/.fluid-container-->